package Demo3;

public class TestComplex {
    public static void main(String[] args) {
        Complex c1=new Complex();
        c1.setRealpart(3);
        c1.setImaginpart(4);
        Complex c2=new Complex();
        c2.setRealpart(4);
        c2.setImaginpart(-5);
        Complex result=new Complex();
        result=c1.plus(c2);
        System.out.println(result.format());
    }
}
